import { Component, OnInit } from '@angular/core';
import { Scope } from '../../../utils/emit';

import { AppSettings } from '../../../app.settings';
@Component({
  selector: 'dashborad-sell',
  templateUrl: './dashborad.sell.html'
})

export class DashboradSellComponent {


  constructor(private scope: Scope, private appSettings: AppSettings) { }


  // 日趋势
  timeType: string = 'day';//or month

  // data
  data: any;


  eventOff: any;
  ngOnInit() {

  }

  ngOnDestroy(){
    if (this.eventOff) {
      this.eventOff.unsubscribe();
    }
  }

  // 日期的处理
  dateOnChange(data) {

    console.log(data);

    this.timeType = data.timeType;

    this.data = data;

    console.log('lk');

  }


}
